Logout-action fails when logged in through basic http authentication.
-
dondarone
- Assigned user cleared.
I can confirm this issue.
Using request_http_basic_authentication as default response by overwriting access_denied, I can not logout anymore. After reverting that change, it works again.
This was in a test environment on mongrel without any .htaccess authentication.
-
Satya
One way to fix this is to disable "basic http authentication" completely
But we needed this for good user experience during Ajax actions, so we enabled this authentication only for ajax actions
def login_from_basic_auth **return false unless request.xhr?** authenticate_with_http_basic do |login, password| self.current_user = User.authenticate(login, password) end end
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.